package com.ac.input.config;

import java.io.Serializable;
import java.util.*;

import com.ac.input.dm.HndInpDefItm;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2004</p>
 * <p>Company: AgileCentury</p>
 * @author <a href="mailto:lianzs@tom.com">Lianzs</a>
 * @version 1.0
 */

public class QueryClass implements Serializable {
	private static final long serialVersionUID = 1L;
    private List dmList = new ArrayList();

    public QueryClass() {}

    public QueryClass(List list) {
        for (int i = 0; i < list.size(); i++) {
            HndInpDefItm dm = (HndInpDefItm) list.get(i);
            if ("1".equals(dm.getIsQuery())) {
                dmList.add(dm);
            }
        }
    }

    public List getChildren() {
        return dmList;
    }
}
